#include"list.h"
void test1()
{
	ListNode* plist = ListCreate();
	ListPushFront(plist, 1);
	ListPushFront(plist, 2);
	ListPushFront(plist, 3);
	ListPushFront(plist, 4);
	ListPushBack(plist, 5);
	ListPrint(plist);
	ListPopBack(plist);
	ListPopFront(plist);
	ListPrint(plist);
	ListNode* pos = ListFind(plist, 2);
	//ListInsert(pos, 7);
	ListErase(pos);
	ListPrint(plist);
	ListDestory(plist);


}
int main()
{
	test1();

	return 0;
}